browserLoadRequested
Type
message
Summary
Sent when a URL has been requested.
Syntax
browserLoadRequested <pUrl>, <pType>
Description
Handle the browserLoadRequested message to perform an action when a URL has been requested.
The browserLoadRequested message is sent to the object containing the script that created the mobile browser control after a url has been requested and passed for loading.
If delayRequests has been set to false, browserLoadRequested is sent as soon as the URL is requested.
If delayRequests is set to true, browserLoadRequested is only sent if the corresponding browserLoadRequest message has been passed.
The browserLoadRequested message is sent in response to the webView:shouldStartLoadWithRequest: delegate method.
Parameters
Name | Type | Description |
---|---|---|
pUrl | The URL that has started to load. | |
pType | enum | The reason for the request.
|
Examples
on browserLoadRequested pURL, pType
put "URL" && pURL && "requested" into field "status bar"
end browserLoadRequested
Related
message: browserStartedLoading, browserFinishedLoading, browserLoadRequest, browserLoadFailed
command: mobileControlCreate, mobileControlDelete, mobileControlSet
function: mobileControlGet, mobileControlTarget, mobileControls
Compatibility and Support
Introduced
LiveCode 5.0.1
OS
ios
Platforms
mobile